package com.huiminpay.merchant.converter;

import com.huiminpay.merchant.dto.MerchantDTO;
import com.huiminpay.merchant.vo.MerchantDetailVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 有点儿意思
 * @Description:
 */
@Mapper
public interface MerchantDetailConvert {

    MerchantDetailConvert INSTANCE = Mappers.getMapper(MerchantDetailConvert.class);

    /**
     * 将dto转成vo
     * @param merchantDTO  封装dto对象
     * @return  vo对象
     */
    MerchantDetailVo dto2vo(MerchantDTO merchantDTO);

    /**
     *将vo转成dto
     * @param merchantDetailVO 封装Vo对象
     * @return Dto对象
     */
    MerchantDTO vo2dto(MerchantDetailVo merchantDetailVO);

}
